package Day12;

public class Demo04 {
    public static void main(String[] args) {
        //增强for循环  用于迭代数组或集合（Collection）
        int[] a = {1,2,4,5,6,8,4,7};
        for (int i:a) {
            System.out.println(i);
        }
    }
}
